export function adddashed(x1, y1, x2, y2) {
  // 动画直虚线
  const line = new zrender.Line({
    shape: {
      x1,
      y1,
      x2,
      y2,
      percent: 0,
    },
    style: {
      stroke: '#434348',
      lineDash: [5, 5],
    },
  });
  line
    .animate('shape', true)
    .when(500, {
      percent: 1,
    })
    .start();

  zr.add(line);
}
